<?php
declare(strict_types=1);

class Queue
{
    public function add_queue($class,$method,$data)
    {
        $array = [];
        $array['class'] = $class;
        $array['method'] = $method;
        $array['data'] = json_encode($data);
        $array['create_time'] = date('Y-m-d H:i:s');
        $queue = new m_queue();
        $array['id'] = $queue->get_uuid();
        return $queue->create();
    }

    public function next_queue()
    {
        
    }


}